// ActionScript file

<?xml version="1.0" encoding="GBK"?><mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"><mx:Style source="style..css"/><mx:RemoteObject id="getCustomer" source="com.flex.SetCustomer" result="customer_Grid.dataProvider=event.result"fault="alert(event.fault.faultstring, 'RemoteObject Error')"><mx:method name="getCustomer"/></mx:RemoteObject>
<mx:Button label="获取客户列表" styleName="bigFont" click="getCustomer.getCustomer()"/><mx:DataGrid id="customer_Grid" styleName="bigFont"><mx:columns><mx:Array> <mx:DataGridColumn columnName="customerNo" headerText="客户"/> <mx:DataGridColumn columnName="name" headerText="姓名"/> <mx:DataGridColumn columnName="address" headerText="住址"/></mx:Array></mx:columns></mx:DataGrid></mx:Application>

